
#ifndef _HANZI_H
#define _HANZI_H

#include "draw.h"

void draw_dian();
void draw_ying();
void draw_you();
void draw_xi();
void draw_yin();
void draw_yue();

void draw_home_page()
{
    draw_dian();
    draw_ying();
    draw_you();
    draw_xi();
    draw_yin();
    draw_yue();
}

void draw_dian()
{
    char zimo[64] = {0x00, 0x00, 0x00, 0x00, 0xE0, 0x00, 0x00, 0x60, 0x00, 0x00, 0x60, 0x00, 0x00, 0x60, 0x00, 0x18,
                     0x7F, 0x80, 0x1F, 0xFF, 0x80, 0x1F, 0x63, 0x80, 0x1C, 0x63, 0x80, 0x1F, 0xFF, 0x00, 0x1F, 0xE3,
                     0x00, 0x1C, 0x63, 0x00, 0x1C, 0x6F, 0x00, 0x1F, 0xFF, 0x80, 0x1F, 0x60, 0x00, 0x0C, 0x60, 0x20,
                     0x00, 0x60, 0x30, 0x00, 0x60, 0x70, 0x00, 0x7F, 0xF0, 0x00, 0x3F, 0xE0, 0x00, 0x00, 0x00};
    open_lcd();
    display_hanzi(100, 360, zimo, 24, 21, 0xffffff);
    close_fd();
}

void draw_ying()
{
    char zimo[64] = {0x00, 0x00, 0x00, 0x0C, 0x18, 0x60, 0x0F, 0xF8, 0xE0, 0x0C, 0x39, 0xC0, 0x0F, 0xF3, 0x80, 0x0C,
                     0xF7, 0x00, 0x0F, 0xFE, 0x60, 0x05, 0xC0, 0xE0, 0x3F, 0xFC, 0xC0, 0x3F, 0x01, 0x80, 0x0F, 0xF7,
                     0x30, 0x0F, 0xFE, 0x70, 0x0F, 0xF0, 0x70, 0x0F, 0xF0, 0xC0, 0x07, 0xC1, 0x80, 0x0F, 0xF3, 0x00,
                     0x1D, 0xBE, 0x00, 0x3F, 0x9C, 0x00, 0x63, 0xB8, 0x00, 0x01, 0xF0, 0x00, 0x00, 0x00, 0x00};
    open_lcd();
    display_hanzi(180, 360, zimo, 24, 21, 0xffffff);
    close_fd();
}

void draw_you()
{
    char zimo[64] = {0x00, 0x00, 0x00, 0x01, 0x06, 0x00, 0x01, 0x86, 0x00, 0x1C, 0xCE, 0x00, 0x0C, 0xCC, 0xC0, 0x04,
                     0x7F, 0xE0, 0x07, 0xF8, 0x00, 0x03, 0xD9, 0xC0, 0x77, 0xFF, 0xC0, 0x3F, 0xF3, 0x80, 0x1F, 0xFF,
                     0x00, 0x0D, 0xF7, 0x20, 0x0D, 0xEF, 0xF0, 0x0F, 0xFF, 0x00, 0x1F, 0x63, 0x00, 0x7F, 0x63, 0x00,
                     0x3F, 0xE3, 0x00, 0x1F, 0xFB, 0x00, 0x0C, 0xCF, 0x00, 0x18, 0x07, 0x00, 0x00, 0x00, 0x00};
    open_lcd();
    display_hanzi(350, 360, zimo, 24, 21, 0xffffff);
    close_fd();
}

void draw_xi()
{
    char zimo[64] = {0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x1C, 0x00, 0x00, 0x1F, 0x00, 0x03, 0xDB, 0x80, 0x3F,
                     0xD9, 0x80, 0x01, 0x98, 0xC0, 0x19, 0x9F, 0xE0, 0x0F, 0xFC, 0x00, 0x0F, 0x1D, 0x80, 0x07, 0x1D,
                     0x80, 0x07, 0x0F, 0x00, 0x0F, 0x8E, 0x00, 0x0D, 0x9E, 0x00, 0x19, 0xBE, 0x60, 0x38, 0x76, 0x60,
                     0x71, 0xC3, 0x60, 0x61, 0x03, 0xE0, 0x00, 0x01, 0xE0, 0x00, 0x00, 0xE0, 0x00, 0x00, 0x00};
    open_lcd();
    display_hanzi(430, 360, zimo, 24, 21, 0xffffff);
    close_fd();
}

void draw_yin()
{
    char zimo[64] = {0x00, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x70, 0x00, 0x00, 0x30, 0x00, 0x07, 0xFF, 0x80, 0x0F,
                     0xFC, 0x00, 0x01, 0x8C, 0x00, 0x01, 0xD8, 0x00, 0x00, 0xBF, 0xE0, 0x3F, 0xFF, 0x80, 0x00, 0x00,
                     0x00, 0x03, 0xFF, 0x00, 0x03, 0xFE, 0x00, 0x03, 0x06, 0x00, 0x03, 0x7E, 0x00, 0x03, 0xFE, 0x00,
                     0x03, 0x06, 0x00, 0x03, 0x1E, 0x00, 0x03, 0xFE, 0x00, 0x03, 0x0E, 0x00, 0x00, 0x00, 0x00};
    open_lcd();
    display_hanzi(600, 360, zimo, 24, 21, 0xffffff);
    close_fd();
}

void draw_yue()
{
    char zimo[64] = {0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x06, 0x3F, 0x00, 0x07, 0xF0, 0x00, 0x07, 0x60, 0x00, 0x06,
                     0x30, 0x00, 0x06, 0x30, 0x00, 0x0E, 0x30, 0x00, 0x0E, 0x3F, 0xC0, 0x0F, 0xFF, 0xC0, 0x0F, 0x30,
                     0x00, 0x01, 0x30, 0x00, 0x03, 0xB6, 0x00, 0x07, 0x33, 0x80, 0x0E, 0x31, 0xE0, 0x1C, 0x30, 0xE0,
                     0x30, 0x30, 0x60, 0x61, 0xF0, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00};
    open_lcd();
    display_hanzi(680, 360, zimo, 24, 21, 0xffffff);
    close_fd();
}

#endif